<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic"%>
<%@ taglib uri="/tags/core" prefix="c"%>
<%@ taglib uri="/tags/fmt" prefix="fmt"%>

<table width="50%" align="center" cellpadding="2" cellspacing="1" border="0" bgcolor="#CCCCC0">
	<tr>
		<td class="titulocolumna" align="center" colspan="6"><bean:message key="label.manual.charges.table.title" /></td>
	</tr>
	
	<tr>
		<td class="etiqueta" style="text-align: left;" ><bean:message key="message.futurepurchase.customer.description"/> </td>
		<td class="etiqueta_campo" style="text-align: right;"> <bean:write name="ManualChargesForm" property="view.description"/> </td>		
		<td class="etiqueta" style="text-align: left;"><bean:message key="label.customerfuturepurchase.type.shortName"/> </td>
		<td class="etiqueta_campo" style="text-align: right;"> <bean:write name="ManualChargesForm" property="view.chargeType" /> </td>
	</tr>
	
	<tr>
		<td class="etiqueta" style="text-align: left;"><bean:message key="label.manual.charges.elementcost"/> </td>
		<td class="etiqueta_campo" style="text-align: right;">
			<bean:write name="ManualChargesForm" property="view.shortName"/>			
		</td>
		<td class="etiqueta" style="text-align: left;"><bean:message key="label.creditline.balance.amount"/> </td>
		<td class="etiqueta_campo" style="text-align: right;"> <bean:write name="ManualChargesForm" property="view.amount"/></td>					
	</tr>
</table>
<br />
<table id="purchaseOrdersId" width="40%" align="center" cellpadding="2" cellspacing="1" border="0" bgcolor="#CCCCC0">
	<tr>		
		<td class="titulocolumna" align="center"><bean:message key="label.futurepurchase.query.period" /></td>
		<td class="titulocolumna" align="center"><bean:message key="error.code" /></td>
		<td class="titulocolumna" align="center"><bean:message key="label.transports.query.capacity" /></td>
		<td class="titulocolumna" align="center"><bean:message key="label.manual.charges.price.unitprice" /></td>
		<td class="titulocolumna" align="center"><bean:message key="label.creditline.balance.amount" /></td>
	</tr>
	<logic:notEmpty name="ManualChargesForm" property="purchaseOrdersVersionList">
		<logic:iterate id="row" name="ManualChargesForm" property="purchaseOrdersVersionList" indexId="int_i">
			<tr class="<%=((int_i.intValue()%2)==0?"columnadatoPar":"columnadatoNon")%>">			
				<td align="center"><bean:write name="row" property="periodDescription"/></td>
				<td align="center"><bean:write name="row" property="code"/></td>
				<td align="right"><bean:write name="row" property="capacityStringValue"/></td>
				<td align="right"><bean:write name="row" property="unitPrice"/></td>
				<td align="right"><bean:write name="row" property="amount"/></td>
			</tr>			
		</logic:iterate>
			<tr>
				<td class="titulocolumna" align="right" colspan="4"> <bean:message key="label.purchases.instructions.forecast.totalsell"/>: &nbsp;</td>				
				<td class="titulocolumna" align="right" >&nbsp;&nbsp;&nbsp;<input id="total" type="text" class="columnanumero" readonly="readonly" value="<c:out value="${total}" />"></td>
			</tr>	
	</logic:notEmpty>			
</table>
<br />
<br />
<table width="50%" align="center" cellpadding="2" cellspacing="1" border="0" bgcolor="#CCCCC0">
	<tr>		
		<td align="center" class="titulo_lista_interna">			
			<html:button property="back" onclick="location.href ='showManualChargesList.do'" styleClass="boton"><bean:message key="label.common.back"/></html:button>
		</td>
	</tr>
</table>
<br />
<br />